package com.sfddata.musicpillow.user.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.sfddata.musicpillow.common.utils.PageUtils;
import com.sfddata.musicpillow.common.utils.R;
import com.sfddata.musicpillow.user.entity.QuestionnaireInfoEntity;

import java.text.ParseException;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;

/**
 * 
 *
 * @author jyo
 * @email 820389501@qq.com
 * @date 2022-08-22 13:23:03
 */
public interface QuestionnaireInfoService extends IService<QuestionnaireInfoEntity> {

    PageUtils queryPage(Map<String, Object> params);

    Integer countSleepScore(List<String> list);

    Integer countPressScore(Map list);

    Integer countBodyScore(Map list);

    Integer countHealthSleepScore(Map sleeplist) throws ParseException;

    Double countSportScore(Map sportlist);

    Double countEatingScore(Map eatlist);

    List<String> countShowlist(Integer psqi, Integer cpss, Map maps) throws ParseException;
}

